@extends('common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
    <div class="neibanner" style="@if(!empty($classifyName))background:url({{$classifyName->img_url}}) @endif no-repeat 50%; background-size: cover;"></div>
    <div class="neipagename">
        <div class="pagename_en">
            @if(!empty($classifyName))
                {{$classifyName->name}}
            @else
                新闻动态
            @endif
        </div>
    </div>
    <div style="width: 100%;">
        <div class="newsline" style="background-color: #ffffff;">
            @if(count($newsList)> 0)
                @foreach($newsList as $new)
                    <a href="{{route('Admin.Home.newsDetail')}}?id={{$new->id}}" style="border: 1px solid #eeeeee">
                        <div class="newstime" >
                            <img src="{{$new->img_url}}" alt="" >
                        </div>
                        <div class="newtext">
                            <div class="newtitle">
                                {{mb_strimwidth($new->title,0,150,'...','utf-8')}}
                            </div>
                            <div class="ntime">
                                {{date_format($new->updated_at,'Y-m-d')}}
                            </div>
                            <div class="newsmall">
                                <div class="des">{{$new->desc}}</div>
                            </div>
                        </div>
                        <div class="newsjiantou" style="height:20px;margin-top: 50px;">
                            <img src="{{url('Assets/picture/bg25.png')}}" class="newsjiantou1" />
                            <img src="{{url('Assets/picture/bg26.png')}}" class="newsjiantou2" />
                        </div>
                    </a>
                @endforeach
            @endif
            <div class="clear"></div>
        </div>
        <div class="pages" style="text-align: center;">
            <?php echo $newsList->render(); ?>
        </div>
    </div>

@endsection

